import request from '@/utils/request'

// 查询TimeLog列表
export function listTimelog(query) {
  return request({
    url: '/oa/timelog/list',
    method: 'get',
    params: query
  })
}

// 查询TimeLog详细
export function getTimelog(id) {
  return request({
    url: '/oa/timelog/' + id,
    method: 'get'
  })
}

// 新增TimeLog
export function addTimelog(data) {
  return request({
    url: '/oa/timelog',
    method: 'post',
    data: data
  })
}

// 修改TimeLog
export function updateTimelog(data) {
  return request({
    url: '/oa/timelog',
    method: 'put',
    data: data
  })
}

// 删除TimeLog
export function delTimelog(id) {
  return request({
    url: '/oa/timelog/' + id,
    method: 'delete'
  })
}
